package com.eqxiu.ieditor.weixin.api;

import java.util.Map;

import com.eqxiu.ieditor.weixin.dto.UnifiedOrder;

/**
 * 
 * @description //TODO 设计说明
 * @author ranger
 * @date Aug 21, 2017
 */
public interface UnifiedOrderServiceApi {

	/**
	 * 生成微信订单
	 * 
	 * @param unifiedOrder
	 * @return
	 * @throws RuntimeException
	 * @throws Exception
	 */
	Map<String, Object> unifiedOrder(UnifiedOrder unifiedOrder) throws Exception;

	/**
	 * 
	 * @description 处理微信的回调信息<p/>
	 * 废弃原因：入参需要客户端 通过WXPayUtil.xmlToMap(notifyResult)方式转换
	 * @author ranger，DuYoulong
	 * @date Aug 21, 2017
	 * @modified by xxx 修改说明
	 * @param notifyResult
	 * @return
	 * @throws Exception
	 */
	@Deprecated
	String handleNotify(Map<String, String> notifyResult) throws Exception;
	
	
	/**
	 * 
	 * @description 处理微信的回调信息
	 * @author ranger，DuYoulong
	 * @date Aug 21, 2017
	 * @modified by xxx 修改说明
	 * @param notifyResult
	 * @return
	 * @throws Exception
	 */
	String handleNotify(String notifyResult) throws Exception;

}
